<?php

/* @var $this yii\web\View */

?>
<form class="pull-center login-form" method="post" action="http://www.yiidev.com/api/dashou/ajaxpost">
    <input type="text" name="data" placeholder="data" class="editor" autocomplete="off"/><br/><br/>
    <input type="submit" value="提交" class="btn"/><br/>
    <p style="width:270px; color: #f00;">
        <?php
             if(isset($model) && $model->hasErrors()) {
                 foreach ($model->getFirstErrors() as $error_msg) {
                     echo $error_msg;
                 }
            }
        ?>
    </p>
</form>